
import { lazy } from "react"
import {
    HomeOutlined,
    TeamOutlined,
    MessageOutlined,
    FileSearchOutlined,
    BarsOutlined,
  
  //   user页面
    StarOutlined,
    VerifiedOutlined ,
    FileDoneOutlined,
    CarOutlined,
    KeyOutlined,
    UsergroupAddOutlined,
    TrademarkCircleOutlined
  } from '@ant-design/icons';
  
const  Home  = lazy (()=>{return import("../views/home")})
const Center= lazy (()=>{return import( "../views/center")})
const List = lazy (()=>{return import( "../views/list")})
const User =lazy (()=>{return import( "../views/user/user")})

const Ask = lazy (()=>{return import( "../views/center/ask")})
const Recommond =lazy (()=>{return import( "../views/center/recommond")})
const Video  = lazy (()=>{return import(  "../views/center/video")})
const  Dongtai =lazy (()=>{return import( "../views/center/dongtai")})
const Xiaoxi= lazy (()=>{return import( "../views/xiaoxi")})
const askDetail= lazy (()=>{return import( "../views/center/askDetail")})
const Details= lazy (()=>{return import( "../views/details")})
const Pinglun= lazy (()=>{return import( "../views/details/evaluation/pinglun")})
const DongDetail = lazy (()=>{return import( "../views/center/dongDetail")})
const Computed = lazy (()=>{return import( "../views/center/computed")})
const reDetail = lazy (()=>{return import( "../views/center/redetail")})
const Order = lazy (()=>{return import( "../views/center/order")})

// user页面
// const car =lazy (()=>{return import( "../views/user/views/nine/car")})
const Comment =lazy (()=>{return import( "../views/user/views/nine/comment")})
const house =lazy (()=>{return import( "../views/user/views/nine/house")})
const service =lazy (()=>{return import( "../views/user/views/nine/service")})
const guarantee= lazy (()=>{return import( "../views/user/views/nine/guarantee")})
const Collection =lazy (()=>{return import( "../views/user/views/nine/Collection")})
const cooperation =lazy (()=>{return import( "../views/user/views/nine/cooperation")})
const Privacy= lazy (()=>{return import( "../views/user/views/nine/Privacy")})

const params= lazy (()=>{return import( "../views/user/views/params/params.js")})
const login= lazy (()=>{return import( "../views/user/views/login/login")})
const history =lazy (()=>{return import( "../views/user/views/history/history.js")})



export default [
    {
        path:"/home",
        component:Home,
        til:"首页",
        isMenu:true,
        icon:HomeOutlined
    },
    {
        path:"/list",
        component:List,
        til:"楼盘",
        isMenu:true,
        icon:BarsOutlined
    },
    
    {
        path:"/center",
        component:Center,
        til:"资讯",
        isMenu:true,
        icon:FileSearchOutlined,
        children:[
            {
                path:"/center/ask",
                component:Ask,
                til:"问答",
              
            },
            {
                path:"/center/recommond",
                component:Recommond,
                til:"推荐",
             
            },
            {
                path:"/center/video",
                component:Video,
                til:"视频",
                aaa:true,
            },
            {
                path:"/center/dongtai",
                component:Dongtai,
                til:"楼盘动态",
                aaa:true,
            },
        ]
    },
    {
        path:"/askDetail",
        component:askDetail,
        til:"资讯问答详情",
        isMenu:false,
    },
    {
        path:"/order",
        component:Order,
        til:"免费专车",
        isMenu:false,
    },
    {
        path:"/details",
        component:Details,
        til:"详情",
        isMenu:false,
    },
    {
        path:"/computed",
        component:Computed,
        til:"房贷计算",
        isMenu:false,
    },
    {
        path:"/reDetail",
        component:reDetail,
        til:"房贷计算",
        isMenu:false,
    },
    {
        path:"/computed",
        component:Computed,
        til:"房贷计算",
        isMenu:false,
    },
    {
        path:"/dongDetails",
        component:DongDetail,
        til:"动态详情",
        isMenu:false,
    },
    {
        path:"/xiaoxi",
        component:Xiaoxi,
        til:"消息",
        isMenu:true,
        icon:MessageOutlined
    },
    {
        path:"/user",
        component:User,
        til:"我的",
        isMenu:true,
        icon:TeamOutlined
    },
    {
        path:"/pinglun",
        component:Pinglun,
        til:"楼盘评论",
        isMenu:false,
    },
   

    // user页面 -----------------------

    {
        path:"/Collection",
        component:Collection,
        til:"我的收藏",
        isMenu:false,
        icon:StarOutlined
    },
    {
        path:"/comment",
        component:Comment,
        til:"我的点评",
        isMenu:false,
        icon:TrademarkCircleOutlined
    },

    // {
    //     path:"/car",
    //     component:car,
    //     til:"预约专车",
    //     isMenu:false,
    //     icon:CarOutlined
    // },
    
    {
        path:"/Privacy",
        component:Privacy,
        til:"隐私协议",
        isMenu:false,
        icon:KeyOutlined
    },
    {
        path:"/cooperation",
        component:cooperation,
        til:"楼盘合作",
        isMenu:false,
        icon:UsergroupAddOutlined
    },
    {
        path:"/service",
        component:service,
        til:"服务声明",
        isMenu:false,
        icon:FileDoneOutlined,
    },
    {
        path:"/guarantee",
        component:guarantee,
        til:"品牌保障",
        isMenu:false,
        icon:VerifiedOutlined
    },
    {
        path:"/house",
        component:house,
        til:"关于房源",
        isMenu:false,
        icon:HomeOutlined
    },
    {
        path:"/login",
        component:login,
        til:"登录",
        isMenu:false,
    },
    {
        path:"/params",
        component:params,
        til:"个人信息",
        isMenu:false,
    },
    {
        path:"/history",
        component:history,
        til:"历史记录",
        isMenu:false,
    },
]